package service.impl;

import dao.UserDao;
import pojo.Users;
import service.UserService;

import java.util.ArrayList;

public class UserServiceImpl implements UserService{
    UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public ArrayList<Users> getUserList() {
        return userDao.getUserList();
    }

    @Override
    public int delUserbyID(int uID) {
        return userDao.delUserbyID(uID);
    }

    @Override
    public int updateuser(Users users) {
        return userDao.updateuser(users);
    }

    @Override
    public int adduser(Users users) {
        return userDao.adduser(users);
    }
}
